package com.czx.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("user")
public class User {

  @TableId(type = IdType.AUTO)
  private Integer id;


  public String getUsername() {
    return username;
  }

  public void setUsername(String username) {
    this.username = username;
  }

  private String username;
  private String password;
  private String salt;
  private String email;

  //'0-普通用户; 1-超级管理员; 2-版主;'
  private Integer type;

  //'0-未激活; 1-已激活;'
  private Integer status;
  private String activationCode;
  private String headerUrl;
  private Date createTime;
  @TableField(exist=false)
  private String post;



}
